<?php
/**
 * @Name: UserCustomRequest.php
 * @Author: yashuai<1762910894@qq.com>
 * @Desc: 用户自定义验证器
 */

namespace App\Http\Requests\Rbac;

use App\Http\Requests\PackingRequest;

class UserCustomRequest extends PackingRequest
{

    public function rules()
    {
        return [];
    }

    public function messages()
    {
        return [
            'UserID.required'           => '缺少记录ID参数',
            'UserID.integer'            => '记录ID参数类型异常',
            'OriginalPassword.required' => '原始不能为空',
            'UserPassword.required'     => '密码不能为空',
            'UserPassword.between'      => '密码长度为6-30位',
        ];
    }

}
